package com.tiger.project.service.impl;
import java.util.List;

import com.tiger.project.domain.MaintenanceEnclosure;
import com.tiger.project.mapper.MaintenanceEnclosureMapper;
import com.tiger.project.service.IMaintenanceEnclosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【维修项目附件】Service业务层处理
 *
 * @author standard
 * @date 2022-09-16
 */
@Service
public class MaintenanceEnclosureServiceImpl implements IMaintenanceEnclosureService {
    @Autowired
    private MaintenanceEnclosureMapper maintenanceEnclosureMapper;

    /**
     * 查询【维修项目附件】
     *
     * @param id 【维修项目附件】主键
     * @return 【维修项目附件】
     */
    @Override
    public MaintenanceEnclosure selectMaintenanceEnclosureById(Long id) {
        return maintenanceEnclosureMapper.selectMaintenanceEnclosureById(id);
    }

    /**
     * 查询【维修项目附件】列表
     *
     * @param maintenanceEnclosure 【维修项目附件】
     * @return 【维修项目附件】
     */
    @Override
    public List<MaintenanceEnclosure> selectMaintenanceEnclosureList(MaintenanceEnclosure maintenanceEnclosure) {
        return maintenanceEnclosureMapper.selectMaintenanceEnclosureList(maintenanceEnclosure);
    }

    /**
     * 新增【维修项目附件】
     *
     * @param maintenanceEnclosure 【维修项目附件】
     * @return 结果
     */
    @Override
    public int insertMaintenanceEnclosure(MaintenanceEnclosure maintenanceEnclosure) {
        return maintenanceEnclosureMapper.insertMaintenanceEnclosure(maintenanceEnclosure);
    }

    /**
     * 修改【维修项目附件】
     *
     * @param maintenanceEnclosure 【维修项目附件】
     * @return 结果
     */
    @Override
    public int updateMaintenanceEnclosure(MaintenanceEnclosure maintenanceEnclosure) {
        return maintenanceEnclosureMapper.updateMaintenanceEnclosure(maintenanceEnclosure);
    }

    /**
     * 批量删除【维修项目附件】
     *
     * @param ids 需要删除的【维修项目附件】主键
     * @return 结果
     */
    @Override
    public int deleteMaintenanceEnclosureByIds(Long[] ids) {
        return maintenanceEnclosureMapper.deleteMaintenanceEnclosureByIds(ids);
    }

    /**
     * 删除【维修项目附件】信息
     *
     * @param id 【维修项目附件】主键
     * @return 结果
     */
    @Override
    public int deleteMaintenanceEnclosureById(Long id) {
        return maintenanceEnclosureMapper.deleteMaintenanceEnclosureById(id);
    }


}
